package com.ledou44.dubboconsumer;

import com.ledou44.dubbocore.ServiceCore;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DubboConsumerApplication {

    public static ServiceCore serviceCore;

    @Reference
    public void setServiceCore(ServiceCore serviceCore) {
        DubboConsumerApplication.serviceCore = serviceCore;
    }

    public static void main(String[] args) {
        SpringApplication.run(DubboConsumerApplication.class, args);
        System.out.println(serviceCore.get());
    }

}
